home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 176-200 / scopedisk180 / rxmenu2 / arexxmenu.doc < prev    next >
Text File  |  1995-03-19  |  4KB  |  110 lines

  1. ArexxMenu.rexx - An ARexx based menu system.
  2. © 1990 by Steven D. Kapplin
  3. Version 1.0 - 11/12/90
  4.  
  5. Requires the following shared libraries from Dissidents Software:
  6.  
  7.     rx_intui.library (in rxintui.lzh uploaded to CIS)
  8.     requestor.library (in fileio.lzh uploaded to CIS)
  9.  
  10. Also requires ARexx Vers. 1.0 by William Hawes
  11.  
  12. Files included:
  13.  
  14.     ArexxMenu.rexx - main menu program
  15.     Exec1.rexx     - support macro which autoruns programs
  16.     RunF1.rexx     - support macro to run programs in foreground with CLI
  17.  
  18.  
  19. ArexxMenu.rexx
  20.  
  21.     This is the main menu macro.  The programming will be fairly self-
  22. evident.   You can change the programs executed and alter the menus
  23. by simply changing the basic text elements.  For more information on
  24. Dissident Software's shared libraries, I suggest you download the two
  25. archives listed above from CIS or PLINK.
  26.  
  27.     ArexxMenu.rexx is executed by the command line:
  28.  
  29.         Run ArexxMenu
  30.  
  31.     Or if you use William Hawes WSHell, then use:
  32.  
  33.         ArexxMenu &
  34.  
  35.     ArexxMenu will not automatically detach itself, so it must be RUN.
  36.  
  37.     Place the two support macros, RunF1.rexx and Exec1.rexx in your REXX:
  38. directory.  REXX: must be assigned because the ArexxMenu macro will only
  39. find them in the assigned REXX: directory.
  40.  
  41. Exec1.rexx
  42.  
  43.     This macro takes a passed filename argument and based on the detected
  44. filetype will automatically run the program to which that file belongs,
  45. or if it's an executable the program will be run.  You must edit Exec1
  46. to provide the particular programs you want to be called depending on
  47. the filetype.  Exec1 recognizes the following filetypes:
  48.  
  49.     Executables
  50.     IFF picture files
  51.     Excellence! word processing files
  52.     Prowrite word processing files
  53.     Advantage spreadsheet files
  54.     MaxiPlan III spreadsheet files
  55.     CanDo decks
  56.     8SVX sound files
  57.     Professional Page 1.3 files
  58.     Pagestream 1.8 files
  59.     IFF animation files
  60.     DigiPaint .DYN files
  61.     LHarc archive files
  62.     ARC archive files
  63.     ZOO archive files
  64.     ZIP archive files (PKAZip is hard coded in Exec1, but can be changed)
  65.     ARexx macros
  66.  
  67.     Exec1 has an internal list of filetypes and programs which are run for
  68. certain of these filetypes.  You can change these programs to those you
  69. use.  The programs you can provide are:
  70.  
  71.     textviewer        program to run to view text files
  72.     pictureviewer        program to show picture files
  73.     unzoo            program to unzoo ZOO archives
  74.     unlzh            program to unarc LZH archives
  75.     unarc            program to unarc ARC archives
  76.     arcdir            directory to receive dearced files
  77.     playsound            8SVX sound player
  78.     player            program to run animations
  79.     editor            program to use to edit files
  80.  
  81.     All of these may be changed according to your particular setup.  Changes
  82. should be obvious from the code.
  83.  
  84.  
  85. RunF1.rexx
  86.  
  87.     This support macro is used to provide a CLI for executing programs
  88. which have no .info file.  ArexxMenu checks the selected file for a
  89. corresponding .info file in the same directory.  If none is found, then
  90. ArexxMenu assumes the program requires a CLI and will automatically use
  91. RunF1 to execute the file and provide a CLI.  You should edit the parameters
  92. ypos and hite in RunF1 to position the CLI window where you want it.  It
  93. is currently set up for my system which uses a 704 x 472 screen.  You
  94. will need to change this to conform to your system.
  95.  
  96. Bugs and comments to:
  97.  
  98.     Steven D. Kapplin
  99.     CIS 70055,1021
  100.  
  101.     These macros are intended for instructional purposes to demonstrate the
  102. use of Dissident Software's new ARexx support libraries.  Understand that
  103. Willy Langeveld's RexxArpLib.library is quite similar.  Both libraries have
  104. functions not duplicated in the other.  Please be aware than both libraries
  105. cannot be used simultaneously because some of the function calls use the
  106. same name.  This is perhaps the major drawback because it isn't possible
  107. to supplement missing functions with the other library.  Perhaps Dissidents
  108. will consider changing the names of the duplicate functions and permit both
  109. libraries to be used together.
  110.